#pragma once
#include "stdio.h"
#include <chrono>

inline void prt_sep() { printf("==========================\n"); }

#define MyTimeI                                                                \
  std::chrono::steady_clock::time_point _my_start_, _my_end_;                  \
  double _my_duration_count_;
#define MyTimeA _my_start_ = std::chrono::steady_clock::now(); /*开始时间*/
#define MyTimeB                                                                \
  _my_end_ = std::chrono::steady_clock::now(); /*结束时间*/                \
  _my_duration_count_ =                                                        \
      (double)std::chrono::duration_cast<std::chrono::microseconds>(           \
          _my_end_ - _my_start_)                                               \
          .count();                                                            \
  printf(">>>Runtime: %15.8g MicroSec\t", _my_duration_count_);                \
  _my_duration_count_ /= 1000.0;                                               \
  printf("==%15.8g MilliSec\t", _my_duration_count_);                          \
  _my_duration_count_ /= 1000.0;                                               \
  printf("==%15.8g Sec\n", _my_duration_count_);
